package com.ai.mall.service;

import com.ai.mall.entity.UsersEntity;
import com.ai.mall.utils.PageUtils;
import com.ai.mall.utils.R;
import com.ai.mall.vo.req.UserRegisterRequest;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * 用户表
 *
 * @author easue
 * @email sunlightcs@gmail.com
 * @date 2025-01-21 14:40:34
 */
public interface UsersService extends IService<UsersEntity> {

    PageUtils queryPage(Map<String, Object> params);

    // 登录方法，根据用户名和密码进行登录
    R login(String username, String password);

    // 注册方法，根据用户注册请求信息进行注册
    R register(UserRegisterRequest userRegisterRequest);

}

